Problem Note 46470: "Invalid argument" exception might appear when attempting to connect to the SAS® server using the SAS® Add-in for Microsoft Office
When connecting to the SAS server using the SAS Add-In for Microsoft Office, you might see an error similar to the following.
System.ArgumentException: Invalid argument.
at MSForms.Controls.Add(String bstrProgID, Object Name, Object Visible)
at SAS.OfficeAddin.VbaAddin._CreateRefEditForm(String fontName, Decimal
fontsize)
at SAS.OfficeAddin.VbaAddin._InitVBProject()
at SAS.OfficeAddin.VbaAddin._CreateInstance()
at SAS.OfficeAddin.VbaAddin.get_CanAccessVBProject()
at SAS.OfficeAddin.DataChooseWindow..ctor(DialogTypeToDisplay dialogType)
at SAS.OfficeAddin.ExcelAddin.ViewSasDataSource()
at SAS.OfficeAddin.RibbonManager.OnButtonClick(IRibbonControl control)
Actions that require a connection to the SAS server include opening SAS data, opening a task, and opening the Options dialog box.
To circumvent this issue, you can deselect Trust access to the VB Project in the Excel options. This option can be found by navigating to Excel Options ► Trust Center ► Trust Center Settings ► Macro Settings.
Operating System and Release Information
SAS System | SAS Add-in for Microsoft Office | Microsoft® Windows® for x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 for x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2008 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2008 for x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Enterprise 32 bit | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Enterprise x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Home Premium 32 bit | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Home Premium x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Professional 32 bit | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Professional x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Ultimate 32 bit | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Ultimate x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows Vista | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows Vista for x64 | 4.3 | 5.1 | 9.2 TS2M3 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2012-05-08 11:38:30 |
Date Created: | 2012-05-02 10:09:11 |